/**  

* @Title: Operator.java 

* @Package com.gxbadge.model 

* @Description: TODO(用一句话描述该文件做什么) 

* @author CST

* @version V1.0  

*/ 

package com.gxbadge.model;

public class Operator {
	
	private Integer operId;
	private String title;
	private String url;
	private String note;
	private Navigation nav;
	public Integer getOperId() {
		return operId;
	}
	public void setOperId(Integer operId) {
		this.operId = operId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	
	public Navigation getNav() {
		return nav;
	}
	public void setNav(Navigation nav) {
		this.nav = nav;
	}
	public Operator(){
		
	}
	public Operator(Integer operId, String title, String url, String note, Navigation nav) {
		super();
		this.operId = operId;
		this.title = title;
		this.url = url;
		this.note = note;
		this.nav = nav;
	}
	public boolean equals(Object obj){
		
		if (this == obj){
			return true;
		}
		if (obj != null && obj.getClass() == Operator.class){
			Operator oper = (Operator)obj;
			return this.getOperId().equals(oper.getOperId()) && this.getTitle().equals(oper.getTitle());
		}
		return false;

	}
	
	public int hashcode(){
		
		return this.getOperId().hashCode() + this.getTitle().hashCode();
		
	}
	
	public String toString(){
		
		return this.getOperId().toString() + this.getTitle().toString();

	}
	
	
}
